The contents of the Tools menu and the Contextual menus can be set up according to needs of the user. The menu items can be changed, deleted or added by editing the text file "Menu Definitions" that is in the Scripts Folder.
There are five sections in this file, each starting with a line with the title in square brackets [], beginning with [TOOLSMENU].
Each menu item is one line in this file, and consists of a title and an optional command portion that begins with /.
[QUERYCONTEXTUALMENU]
Whois/whois $T
CTCP
.Ping/ctcp $T ping
.Finger/ctcp $T finger
.Version/ctcp $T version
.Time/ctcp $T time
.Userinfo/ctcp $T userinfo
.ClientInfo/ctcp $T clientinfo
DCC
.Send/dcc send $T
Sub menus are specified with one line with the menu title, followed by lines with one or more dots before the title. The dots indicate the sub menu level.
The above example has two sub menus, named CTCP and DCC. The CTCP sub menu has six items in it, and the DCC sub menu has one item.
The command portion is executed when the item is selected in the menu.
Please see chapter "Using Scripting" for more information on the scripting variables and the scripting language.
If you make additions to the menus that you think are useful to others, you are welcome to send them to me and I might add them to future releases of Snak.
The Tools Menu
The tools menu is intended for functions that operate on selections in the userlist, so to use most of the built in Tool functions, you need to select a nick in the userlist and use the menu.
Two of the scripting variables that Snak provide are especially suited to be used in Tool functions $E and $F:
The $E variable returns the nick of the first selected user and is used in functions like /whois.
The $F variable returns the user and host information that Snak knows about the selected Nick. This is useful in functions like /kick or /ban
The Respond function will open a query window to the last person that sent you a private message.
The Contextual menus
Contextual menus (CM for short) was introduced with OS 8, and is invoked by holding down the control key when clicking somewhere. Snak supports CM in the userlists, the channel window, the console window and Query windows.